package com.game.business.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.game.common.annotation.Excel;
import com.game.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 优惠券对象 t_coupon
 *
 * @author ruoyi
 * @date 2025-10-11
 */
@Data
@TableName(value = "t_coupon")
@EqualsAndHashCode(callSuper = true)
public class TCoupon extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "优惠金额"
     */
    @Excel(name = "优惠金额")
    private BigDecimal money;
    /**
     * "标题"
     */
    @Excel(name = "标题")
    private String title;
    /**
     * "有效开始时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "有效开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    /**
     * "有效截止时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "有效截止时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;
}
